class IntegrationParameter < ActiveRecord::Base
  belongs_to :simulation
  ALGORITHM_TYPES = ['HYBRID', 'BS', 'BS2', 'MVS', 'RADAU']
  SELECT = ['Yes', 'No']
  TIME = ['Days', 'Years']
  PRECISION = ['Low', 'Medium', 'High']
  
  def self.create_integration_parameter(simulation_id)
		integration_parameter = IntegrationParameter.new
		integration_parameter.simulation_id = simulation_id
		integration_parameter.accuracy = '1.d-12'
		integration_parameter.particles_per_simulation = '10'
		integration_parameter.ejection_distance = '100'
		integration_parameter.solar_radius = '0.005'
		integration_parameter.hill_radii = '3'
		integration_parameter.timesteps_between_data_dumps = '500'
		integration_parameter.timesteps_between_periodic_effects = '100'
		integration_parameter.save
		integration_parameter
	end
	
end
